<?php

class Application_Form_Consultor extends Zend_Form
{

    public function init()
    {
        $this->setName('Cadastro_consultor');
		
		
		 $id  = new  Zend_Form_Element_Hidden( 'id');
		
		$cpf = new Zend_Form_Element_Text('cpf');
		$cpf->setLabel('Cpf')
				->setRequired(true)
				->addFilter('StripTags')
				->addValidator('NotEmpty')
				->setDecorators(array(
					'ViewHelper',
					'Label',

					'Description',
					array('label',array('tag'=> 'br'))
					));
    
	
	
		$nome = new Zend_Form_Element_Text('nome');
		$nome->setLabel('Nome')
				->setRequired(true)
				->addFilter('StripTags')
				->addValidator('NotEmpty')
				->setDecorators(array(
					'ViewHelper',
					'Label',

					'Description',
					array('label',array('tag'=> 'br'))
					));
					
					
		$curriculo = new Zend_Form_Element_Text('curriculum');
		$curriculo ->setLabel('Curriculo')
				->setRequired(true)
				->addFilter('StripTags')
				->addValidator('NotEmpty')
				->setDecorators(array(
					'ViewHelper',
					'Label',

					'Description',
					array('label',array('tag'=> 'br'))
					));
				
	
	
		$telefone = new Zend_Form_Element_Text('telefone');
		$telefone->setLabel('Telefone')
				->setRequired(true)
				->addFilter('StripTags')
				->addValidator('NotEmpty')
				->setDecorators(array(
					'ViewHelper',
					'Label',

					'Description',
					array('label',array('tag'=> 'br'))
					));
				
				
				
		$conta = new Zend_Form_Element_Text('conta_bancaria');
		$conta->setLabel('Conta bancaria')
				->setRequired(true)
				->addFilter('StripTags')
				->addValidator('NotEmpty')
				->setDecorators(array(
					'ViewHelper',
					'Label',

					'Description',
					array('label',array('tag'=> 'br'))
					));

				
				
		$endereco = new Zend_Form_Element_Text('endereco');
		$endereco->setLabel('Endereco')
				->setRequired(true)
				->addFilter('StripTags')
				->addValidator('NotEmpty')
				->setDecorators(array(
					'ViewHelper',
					'Label',
		
					'Description',
					array('label',array('tag'=> 'br'))
					));

				
				
		$senha = new Zend_Form_Element_Password('senha');
		$senha->setLabel('Senha')
				->setRequired(true)
				->addFilter('StripTags')
				->addValidator('NotEmpty')
				->setDecorators(array(
					'ViewHelper',
					'Label',
				
					'Description',
					array('label',array('tag'=> 'br'))
					));
					
		
		$sigla = new Zend_Form_Element_Text('sigla');
		$sigla->setLabel('Sigla')
				->setRequired(true)
				->addFilter('StripTags')
				->addValidator('NotEmpty')
				->setDecorators(array(
					'ViewHelper',
					'Label',
				
					'Description',
					array('label',array('tag'=> 'br'))
					));
				
				
		$submitButton = new Zend_Form_Element_Submit('Submeter');
		
		$submitButton->setLabel('Submeter');
		$submitButton->setAttrib('id','Submeter')
					->setIgnore(true)
					->setDecorators(array(
						'ViewHelper',

						'Description',
						array('HtmlTag',array('tag'=> 'p'))
					));
					
		$this->addElements(array($id,$cpf,$nome,$curriculo,$telefone,$conta,$endereco,$senha,$sigla,$submitButton));
		
		$this->setAction('/cadastro/consultor')->setMethod('post');		
    }


}

